Python for Unix and Linux System Administration by Noah Gift & Jeremy M. Jones
Author:Noah Gift & Jeremy M. Jones [Gift, Noah & Jones, Jeremy M.]
Language: eng
Format: epub
Tags: COMPUTERS / Networking / General
ISBN: 9780596158781
Publisher: O'Reilly Media
Published: 2009-06-29T23:00:00+00:00
In order for our query to work in the first place, we needed to tell snmpd.conf about this script, and here is what that section looks like:
syslocation "O'Reilly" syscontact [email protected] rocommunity public exec helloworld /usr/bin/python -c "print 'hello world from Python'" exec .1.3.6.1.4.1.2021.28664.100 FirefoxHits /usr/bin/python /opt/local/snmp_scripts/agent_ext_logs.py
The magic portion is the last line, in which .1.3.6.1.4.1.2021 is the ucdavis enterprise number, 28664 our enterprise number, and 100 is some contrived value that we decided we wanted to use. It is really important to follow best practices and use your our enterprise number if you plan on extending SNMP. The main reason is that you will avoid causing havoc if you decide to use a range already occupied by someone else and then make changes via snmpset.
We would like to close with the fact that this is one of the more exciting topics in the book, and SNMP is still a very untouched playground. There are many things that customizing Net-SNMP can be useful for, and if you are careful to use SNMP v3, you can do some incredible things that are most easily accomplished through the SNMP protocol; and that ssh or sockets would be the most natural choice.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12585)
Hello! Python by Anthony Briggs(9920)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9799)
The Mikado Method by Ola Ellnestam Daniel Brolund(9782)
Dependency Injection in .NET by Mark Seemann(9343)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(9299)
Hit Refresh by Satya Nadella(8826)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8305)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7786)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7768)
Grails in Action by Glen Smith Peter Ledbrook(7700)
The Kubernetes Operator Framework Book by Michael Dame(7666)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7562)
Exploring Deepfakes by Bryan Lyon and Matt Tora(7455)
Practical Computer Architecture with Python and ARM by Alan Clements(7378)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7361)
Robo-Advisor with Python by Aki Ranin(7335)
Building Low Latency Applications with C++ by Sourav Ghosh(7242)
Svelte with Test-Driven Development by Daniel Irvine(7207)
